import requests


class Ihrm_Login_API:

    @classmethod
    def login(cls,login_json):
        resp=requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",json=login_json)
        # print(resp.json())
        return resp
    @classmethod
    def login2(cls,login_json):
        resp = requests.post(url="http://123.57.39.153:5005/auth", json=login_json)
        # print(resp.json())
        return resp

if __name__ == '__main__':
    login_json={"mobile": "13800000002","password": "123456"}
    resp=Ihrm_Login_API.login(login_json)
    print(resp.json())